package com.nbufe.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
/**
 * 碳交易表(CarbonTrading)表实体类
 *
 * @author makejava
 * @since 2024-01-25 15:22:34
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("carbon_trading")
public class CarbonTrading  {
    @TableId
    private Integer id;

    //租户id
    private Integer tenantId;
    //交易时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //交易类型（0卖出 1买入 2政府免费发放）
    private Integer tradeType;
    //交易数量
    private Double tradeQuantity;
    //交易价格
    private Double tradePrice;
    //交易价格
    private String area;

    @TableLogic
    private Integer delFlag;

    //碳资产类型（0配额 1CCER）
    private Integer quotaType;

}
